package cn.lookup.service.impl;

import cn.lookup.dao.ItemMapper;
import cn.lookup.pojo.Item;
import cn.lookup.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("itemService")
@Transactional
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;
    @Override
    public Item queryItemById(int id) {
        Item item = itemMapper.queryItemById(id);
        return item;
    }
}
